﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DemoUser.Application
{
    public static class Utils
    {
        private static Random Random = new Random();

        public static int returnRandom(int count)
        {
            int trend = ((int)Random.NextInt64(count) + 1) / 2;
            ArrayList list = new System.Collections.ArrayList();
            for (int i = 0; i < trend; i++)
            {
                list.Add(i);
                list.Add(-i);
            }
            
            foreach (var item in list)
            {
                Console.WriteLine((int)item);
            }
            return list.Count;
        }
    }
}
